package itsm.isperp.module.controller.app;

import javax.servlet.http.HttpServletRequest;

import itsm.isperp.framework.data.domain.PageResponse;
import itsm.isperp.framework.web.controller.BaseController;
import itsm.isperp.framework.web.request.JqGridRequest;
import itsm.isperp.module.dto.app.VUserAccount;
import itsm.isperp.module.service.app.UserAccountService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
 * 
 * 
 * @author lizx
 * @date 2015-1-28
 * @since 1.0
 * 
 */
@Controller
@RequestMapping("/app/userAccount")
public class UserAccountController {

	@Autowired
	UserAccountService userAccountService;

	public UserAccountService getService() {
		return userAccountService;
	}

	@RequestMapping("list")
	@ResponseBody
	public PageResponse<VUserAccount> list(JqGridRequest request,
			HttpServletRequest req) {
		return this.getService().findAll(request).toPage();
	}

}
